package com.qf.service;

import com.qf.dao.UserDaoImpl;
import com.qf.entity.User;

import java.util.ArrayList;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * @date 2024/11/8
 * @desc
 */
public class UserServiceImpl implements UserService{
    private UserDaoImpl userDao = new UserDaoImpl( );
    @Override
    public User login(String username, String password) {
        //需要创建Dao对象
        User user = userDao.login(username, password);
        return user;
    }

    @Override
    public ArrayList<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public boolean regirst(User user) {
        return false;
    }
}
